Optimal. Leaf size=21 \[ -\frac {1}{4} \text {PolyLog}(2,-1-x)+\frac {1}{4} \text {PolyLog}(2,1+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6242, 12, 6031}
\begin {gather*} \frac {\text {Li}_2(x+1)}{4}-\frac {\text {Li}_2(-x-1)}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 6031
Rule 6242
Rubi steps
\begin {align*} \int \frac {\tanh ^{-1}(1+x)}{2+2 x} \, dx &=\text {Subst}\left (\int \frac {\tanh ^{-1}(x)}{2 x} \, dx,x,1+x\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {\tanh ^{-1}(x)}{x} \, dx,x,1+x\right )\\ &=-\frac {1}{4} \text {Li}_2(-1-x)+\frac {\text {Li}_2(1+x)}{4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 31, normalized size = 1.48 \begin {gather*} -\frac {1}{4} \text {PolyLog}\left (2,\frac {1}{2} (-2-2 x)\right )+\frac {1}{4} \text {PolyLog}\left (2,\frac {1}{2} (2+2 x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.93, size = 34, normalized size = 1.62
method | result | size |
risch | \(\frac {\dilog \left (-x \right )}{4}-\frac {\dilog \left (x +2\right )}{4}\) | \(14\) |
derivativedivides | \(\frac {\ln \left (1+x \right ) \arctanh \left (1+x \right )}{2}-\frac {\dilog \left (x +2\right )}{4}-\frac {\ln \left (1+x \right ) \ln \left (x +2\right )}{4}-\frac {\dilog \left (1+x \right )}{4}\) | \(34\) |
default | \(\frac {\ln \left (1+x \right ) \arctanh \left (1+x \right )}{2}-\frac {\dilog \left (x +2\right )}{4}-\frac {\ln \left (1+x \right ) \ln \left (x +2\right )}{4}-\frac {\dilog \left (1+x \right )}{4}\) | \(34\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 58 vs.
\(2 (15) = 30\).
time = 0.25, size = 58, normalized size = 2.76 \begin {gather*} -\frac {1}{4} \, {\left (\log \left (x + 2\right ) - \log \left (x\right )\right )} \log \left (x + 1\right ) + \frac {1}{2} \, \operatorname {artanh}\left (x + 1\right ) \log \left (x + 1\right ) - \frac {1}{4} \, \log \left (x + 1\right ) \log \left (x\right ) + \frac {1}{4} \, \log \left (x + 2\right ) \log \left (-x - 1\right ) - \frac {1}{4} \, {\rm Li}_2\left (-x\right ) + \frac {1}{4} \, {\rm Li}_2\left (x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\operatorname {atanh}{\left (x + 1 \right )}}{x + 1}\, dx}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.05 \begin {gather*} \int \frac {\mathrm {atanh}\left (x+1\right )}{2\,x+2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________